<?php include _include(APP_PATH.'view/htm/header.inc.htm');?>
<h1>问卷回答标签处理</h1>
<form action="/textag.htm" id="form" method="post">
    <div class="form-group row">
        <label class="col-2 form-control-label">现有文件名:</label>
        <div class="col-10">
            <input type="text" id="oldpath" name="oldpath" class="form-control col-6  col-sm-10" placeholder="指定已经存在的文件路径,相对于/upload/docs"  value="" />
        </div>
    </div>
    <div class="form-group row">
        <label class="col-2 form-control-label" for="texter">文档内容:</label>
        <div class="col-10">
            <textarea class="form-control" rows="24" id="texter" name="texter"></textarea>
        </div>
    </div>
    <div class="form-group row">
        <label class="col-2 form-control-label">操作密码:</label>
        <div class="col-10">
            <input type="password" id="optpwd" name="optpwd" class="form-control col-4  col-sm-6" autocomplete="new-password" placeholder="输入操作密码以验明身份"  />
        </div>
    </div>
    <div class="form-group row text-center">
        <button type="submit" class="btn btn-primary" id="submit"  name="submit" data-loading-text="<?php echo lang('submiting');?>..."> <?php echo lang('operation');?> </button>
    </div>
</form>


<form action="/textag.htm" id="form2" method="post">
    <div class="form-group row">
        <label class="col-2 form-control-label">生成下载:</label>
        <div class="col-10">
            <input type="text" id="fdname" name="fdname" class="form-control col-4 float-left  col-sm-8" placeholder="服务器处理之后生成的结果文件名" value="<?php echo $down_file_name;?>"  />
            <button type="submit" class="btn btn-secondary float-left" id="submit2"  name="submit2" data-loading-text="<?php echo lang('submiting');?>..."> <?php echo lang('download');?> </button>
        </div>
    </div>
</form>
<div class="row">
    <textarea class="form-control" readonly="readonly" placeholder="运行提示或者错误信息" id="message" style="height: 300px;"><?php echo $err_message;?></textarea>
</div>



<?php include _include(APP_PATH.'view/htm/footer.inc.htm');?>